public class Settings {
    private static boolean sound_on = true;
    private static int font_size = 18;

    public static final int frame_w = 1000;
    public static final int frame_h = 600;
    // 3 buttons at init panel
    public static final int new_game_button_w = 260;
    public static final int new_game_button_h = 50;
    public static final int new_game_button_x = 365;
    public static final int new_game_button_y = 260;
    public static final int load_button_y = new_game_button_y+new_game_button_h+20;
    public static final int settings_button_y = load_button_y+new_game_button_h+20;
    public static final String button_font = "Dialog";
    // 游戏界面中鲁滨逊各项属性标签（统一横坐标、长、宽）
    public static final int age_label_w = 200;
    public static final int age_label_h = 40;
    public static final int age_label_x = 20;
    public static final int age_label_y = 42;
    public static final int intelligence_label_y = age_label_y + age_label_h;
    public static final int strength_label_y = intelligence_label_y + age_label_h;
    public static final int mood_label_y = strength_label_y + age_label_h;

    public static final int home_button_w = 60;
    public static final int home_button_h = 60;
    public static final int home_button_x = 70;
    public static final int home_button_y = 234+100;
    public static final int home_button_x_for_load = 25;
    public static final int home_button_y_for_load = 450;

    public static final int save_button_w = 60;
    public static final int save_button_h = 60;
    public static final int save_button_x = 70;
    public static final int save_button_y = 600-save_button_h-100;

    public static final int left_button_w = 45;
    public static final int left_button_h = 60;
    public static final int left_button_x = 100+100+500;
    public static final int left_button_y = 100;

    public static final int right_button_w = 45;
    public static final int right_button_h = 60;
    public static final int right_button_x = 200+100+500;
    public static final int right_button_y = 100;

    public static final int page_label_w = 45;
    public static final int page_label_h = 60;
    public static final int page_label_x = 160+100+500;
    public static final int page_label_y = 100;

    public static final int delete_button_w = 50;
    public static final int delete_button_h = 50;
    public static final int delete_button_x = 200+100+500-30+3;
    public static final int delete_button_y_1 = 190+10+3+2;
    public static final int delete_button_y_2 = 183+113-2+3+15;
    public static final int delete_button_y_3 = 183+113*2-4+18;

    public static final int ft_sz_lb_w = 240;
    public static final int ft_sz_lb_h = 40;
    public static final int ft_sz_lb_x = 180;
    public static final int ft_sz_lb_y = 250;
    public static final int add_ft_sz_bt_x = ft_sz_lb_x + ft_sz_lb_w + 75;
    public static final int minus_ft_sz_bt_x = add_ft_sz_bt_x + 75;

    public static final int eat_w = 80;
    public static final int eat_h = 25;
    public static final int eat_x = 900;
    public static final int eat_y = frame_h/2-2*eat_h-60;
    public static final int play_y = eat_y+40;
    public static final int read_y = play_y+40;
    public static final int sail_y = read_y+40;


    public static final int record_button_w = 701;
    public static final int record_button_h = 113;
    public static final int record_button_x = 150;
    public static final int record_button_y_1 = 183;
    public static final int record_button_y_2 = 183+113-2;
    public static final int record_button_y_3 = 183+113*2-4; // 觉得调成这样就还行

    public static final int wood_w = 120;
    public static final int wood_h = 30;
    public static final int wood_x = 850;
    public static final int wood_y = 100;
    public static final int cultivate_y = wood_y + wood_h + 50;
    public static final int sheep_y = cultivate_y + wood_h + 50;
    public static final int hang_out_y = sheep_y + wood_h + 50;
    public static final int nothing_y = hang_out_y + wood_h + 50;

    public static final int choices = 4;
    public static final int FIRST_SALES = 19;

    public static boolean isSound_on() {
        return sound_on;
    }

    public static void setSound_on(boolean sound_on) {
        Settings.sound_on = sound_on;
    }

    public static int getFont_size() {
        return font_size;
    }

    public static void setFont_size(int font_size) {
        if (font_size > 0)
            Settings.font_size = font_size;
    }
}
